import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    x0: 0,
    x1: 0,
    x2: 0,
    x3: 0,
    x4: 0,
    x5: 0,
    x6: 0,
    x7: 0,
    x8: 0,
    testdata: [],
    data1: [],
    // 定义一个新的用来排序的数组
    sortdata1: [],
    data2: [],
    data3: [],
    data4: [],
    dataHQ: [],
    accountdatas: [],
    accountdataspromote: [],
    transactiondatas: [],
    transjobdatas: [],
    // 关注列表
    followtoken: [],
    followaccount: [],
    // 推荐列表
    promotiontoken: [],
    promotionaccount: [],
    mess: 0,
    mess1: 0,
    Num: '',
    Password: '',
    type: '',
    Exchange: '',
    HQ: '',
    arrexchange: [],
    netWorthCurve: [],
    sharenetWorthCurve: [],
    // 净值时间数组
    TIME: [],
    shareTIME: [],
    followingsTIME: [],
    // 净值数组
    NET: [],
    shareNET: [],
    followingsNET: [],
    NET1: [],
    // 最新净值数据
    todayTime: '',
    todayNet: '',
    sharetodayNet: '',
    todayfollowingsNet: '',
    // INDEX用来传递对应账户的收益率曲线
    INDEX: 10,
    dataTime: [],
    dataNet: [],
    dataNet1: [],
    token: '',
    peerToken: '',
    Activeindex: '',
    publicIP: '',
    publicPort: '',
    // 收益
    todayprofit: '',
    weekprofit: '',
    monthprofit: '',
    totalprofit: '',
    // 订阅关注
    promote: '',
    promotionlist: [],
    addcontact: '',
    removecontact: '',
    getcontact: [],
    follow: '',
    unfollow: '',
    getfollowings: [],
    share: '',
    pushMessage: ['暂无新消息。'],
    pushMessage1: [],
    pushMessage2: [],
    pushMessage3: [],
    Newdata: '',
    judgeLoginStatus: '',
    all: {},
    // 登录状态
    accountStatus: '',
    aaa: -1,
    l: [],
    groupname: ''
  },
  mutations: {},
  actions: {},
  Fcsort: true // 控制排序方式，true是降序，false为升序
})
